import request from "@/utils/request";

class AuthAPI {
    //获取员工列表信息
    static getStaffList(AuthorizeCode: string, data: any) {
		// console.log('data===',data);
        const data1 ={
            page:data.page,
            page_size:data.page_size
        }
		// console.log('data===',data1);
		// 发送请求
		return request<any>({
		  url: "/employee/page-list",
		  method: "post",
          data:data,
		//   params:data1,
		  headers: {
			token: AuthorizeCode,
		  },
		});
	  };
	//生成AI报表
	static genAIreport(AuthorizeCode: string, data: any) {
		// console.log('data===',data);
		let formobj={
			question:data,
		}
		return request<any>({
		  url: `/open/query`,
		  method: "get",
		  params:formobj,
		  headers: {
			token: AuthorizeCode,
		  },
		});
	  };
}
export default AuthAPI;